import { TicketTemplate } from "@/types/template";

export const mockTicketTemplates: TicketTemplate[] = [
  {
    id: "template-001",
    name: "隔离开关合闸操作票 (送电) - 标准模板",
    type: "隔离开关合闸操作票 (送电)",
    description: "用于对指定股道的隔离开关进行合闸送电操作的标准化流程。",
    location: "丁堰车辆段",
    task: {
      name: "{target}隔离开关送电",
      conditions: "确认相关作业已结束、受电弓降下, 无雷雨天气。(送电作业前确认平台人员及设备出清)",
      requiredGear: ["安全帽", "绝缘手套", "绝缘鞋"],
      precautions: [
        "手动操作隔离开关时手柄动作迅速一次到位, 雨天操作隔离开关时, 应双脚并拢;",
        "隔离开关锁匙、操作隔离开关、验电、架接地线、开检修平台锁均应由同一人操作, 另一人监护;",
        "晚间作业或光线比较暗时必需用强光灯对隔离开关状态进行检查;",
        "绝缘手套、绝缘靴、验电器、接地棒在使用前必须进行外观及功能检查且需确认在有效使用期内, 并做绝缘手套、绝缘靴简单气密性实验。验电器、接地棒轻拿轻放。"
      ]
    },
    steps: [
       { "stepNumber": 1, "description": "确认{target}三层平台人员及设备已出清, 并按下相应巡检点按钮进行确认" },
      { "stepNumber": 2, "description": "确认{target}巡检点2侧门禁已关闭({target}仅确认巡检点2侧门禁、{adjacent_target}仅确认巡检点1侧门禁)" },
      { "stepNumber": 3, "description": "确认{target}三层平台人员及设备已出清, 并按下相应巡检点按钮进行确认" },
      { "stepNumber": 4, "description": "确认{target}巡检点1侧门禁已关闭({target}仅确认巡检点2侧门禁、{adjacent_target}仅确认巡检点1侧门禁)" },
      { "stepNumber": 5, "description": "先拆除地线上方挂接点, 然后打开{target}临时接地点地线桩, 将地线锁销完全拔出。" },
      { "stepNumber": 6, "description": "将{target}接地杆放回指定位置并闭锁" },
      { "stepNumber": 7, "description": "确认地线闭锁盒已关闭" },
      { "stepNumber": 8, "description": "在该股道区域大喊两声“{target}隔离开关送电”, 确认车底及两侧无人" },
      { "stepNumber": 9, "description": "操作人员及监护人员再次确认接地线已拆除(手指口呼)", "isCritical": true },
      { "stepNumber": 10, "description": "取走隔离开关上的“禁止合闸”牌" },
      { "stepNumber": 11, "description": "打开{target}隔离开关五防锁具, 合上{target}隔离开关" },
      { "stepNumber": 12, "description": "检查{target}隔离开关确在合位位置" },
      { "stepNumber": 13, "description": "确认刀闸处于合闸位, LED屏显示“有电”(手指口呼)" },
      { "stepNumber": 14, "description": "将{target}隔离开关机械锁已挂锁, 操作完成" }
    ]
  },
  {
    id: "template-002",
    name: "隔离开关分闸操作票 (断电) - 标准模板",
    type: "隔离开关分闸操作票 (断电)",
    description: "用于对指定股道的隔离开关进行分闸断电操作的标准化流程。",
    location: "丁堰车辆段",
    task: {
      name: "{target}隔离开关 断电",
      conditions: "确认相关作业已结束, 受电弓降下, 无雷雨天气。",
      requiredGear: ["安全帽", "绝缘手套", "绝缘鞋"],
      precautions: [
        "手动操作隔离开关时手柄动作迅速一次到位, 雨天操作隔离开关时, 应双脚并拢;",
        "隔离开关锁匙、验电、架接地线、开检修平台锁均应由同一人操作, 另一人监护;",
        "晚间作业或光线比较暗时必需用强光灯对隔离开关状态进行检查;",
        "绝缘手套、绝缘靴、验电器、接地棒在使用前必须进行外观及功能检查且需确认在有效使用期内, 并做绝缘手套、绝缘靴简单气密性实验。验电器、接地棒轻拿轻放。"
      ]
    },
    steps: [
      { "stepNumber": 1, "description": "确认股道号与操作任务栏股道一致" },
      { "stepNumber": 2, "description": "打开{target}隔离开关五防锁具, 拉开{target}隔离开关" },
      { "stepNumber": 3, "description": "检查{target}隔离开关确在分位位置" },
      { "stepNumber": 4, "description": "确认刀闸处于分闸位 (45°左右), LED屏显示“无电” (手指口呼)" },
      { "stepNumber": 5, "description": "将{target}隔离开关机械锁已挂锁" },
      { "stepNumber": 6, "description": "再次确认股道隔离开关已打开 (手指口呼)", "isCritical": true },
      { "stepNumber": 7, "description": "挂“禁止合闸”牌到隔离开关处" },
      { "stepNumber": 8, "description": "将验电棒插入验电桩, 在挂好验电棒后确认“验电”, 确认无电, 之后再拆除验电装置" },
      { "stepNumber": 9, "description": "从闭锁盒中取出{target}接地棒" },
      { "stepNumber": 10, "description": "确认地线闭锁盒已关闭" },
      { "stepNumber": 11, "description": "打开{target}临时接地点地线桩, 将地线锁销完全插入, 并挂接好地线" },
      { "stepNumber": 12, "description": "确认接地线已正常挂接" }
    ]
  }
] 